/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package name.coolwind.cxblog.web;

import name.coolwind.cxblog.service.BlogService;
import name.coolwind.cxblog.service.IndexService;
import name.coolwind.cxblog.service.TagService;
import name.coolwind.cxblog.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 *
 * @author coolwind
 */
@Controller
@RequestMapping(value = {"/","/index"})
public class IndexController {
    
    @Autowired
    private IndexService indexService;
    
    /**
     *
     * @return
     */
    @RequestMapping(method = RequestMethod.GET)
    public String getIndexPage(){
        return "forward:/blog";
    }
}
